home *** CD-ROM | disk | FTP | other *** search
- Path: UCTVMS.UCT.AC.ZA!xander
- From: Xander <xander@uctvms.uct.ac.za>
- Newsgroups: comp.lang.c++
- Subject: spawnlp problem in VC 1.5
- Date: Fri, 15 Mar 1996 15:22:11 +0200
- Organization: University of Cape Town
- Message-ID: <Pine.PMDF.3.91.960315151412.547456582A-100000-100000@uctvms.uct.ac.za>
- NNTP-Posting-Host: uctvms.uct.ac.za
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
- Hi there
-
- I seem to have a strange problem in VC 1.52 with the spawnlp command:
- sprintf(fname,"%s.dat",name);
- sprintf(xxx,"%s.exe",name);
- x = _spawnlp(_P_WAIT, xxx, xxx, "RATE", fname, NULL);
-
- This always fails with a E2BIG error. If however I do this...
-
- sprintf(xxx,"%s.exe RATE %s.dat",name,name);
- x = system(xxx);
-
- This works!!! But this executes another command.com to work.
- Why does the _spawnlp not work???
-
- Alex Goodman
-